www.gusucode.com > tpframe PHP开发框架 v2.2PHP源码程序 > tpframe PHP开发框架 v2.2/tpframe_v2.2.0618/tpframe_v2.2.0618/data/runtime/temp/c992f53b53d3de01947e80556d11de36.php

    <?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:31:"addon/cms/view/posts\index.html";i:1528508183;}*/ ?>
<?php
use tpfcore\Core;
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- HTML5 shim for IE8 support of HTML5 elements --> <!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<![endif]-->
	<link href="<?php echo $admin_assets_path; ?>/css/theme.min.css" rel="stylesheet">
	<link href="<?php echo $admin_assets_path; ?>/css/simplebootadmin.css" rel="stylesheet">
	<link href="<?php echo $admin_assets_path; ?>/css/default.css" rel="stylesheet" />
	<link href="<?php echo $admin_assets_path; ?>/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<style>
		.length_3{width: 180px;} form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;} .table-list{margin-bottom:
		0px;}
		.selector{width: 120px;}
	</style>
	<!--[if IE 7]>
		<link rel="stylesheet" href="<?php echo $admin_assets_path; ?>/css/font-awesome-ie7.min.css">
	<![endif]-->
	<script type="text/javascript">
		//全局变量
		var GV = {
			WEB_ROOT:"",
			DIMAUB: "/",
			JS_ROOT: "/theme/backend/assets/js/",
			TOKEN: ""
		};
	</script>
	<!-- Le javascript==================================================-
	-> <!-- Placed at the end of the document so the pages load faster -->
	<script src="<?php echo $admin_assets_path; ?>/js/jquery.js"></script>
	<script src="<?php echo $admin_assets_path; ?>/js/wind.js"></script>
	<script src="<?php echo $admin_assets_path; ?>/js/bootstrap.min.js"></script>
	<script>
		$(function(){
			$("[data-toggle='tooltip']").tooltip();
		});
	</script>
</head>
<body>
<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="<?php echo url('cms/posts/index'); ?>">文章管理</a></li>
			<li><a href="<?php echo url('cms/posts/add'); ?>">添加文章</a></li>
		</ul>
		<form class="well form-search" method="post" action="">
			分类:
			<select name="cateid" class="selector">
				<option value="0">全部</option>
				<?php echo (isset($categorys) && ($categorys !== '')?$categorys:""); ?> 
			</select> &nbsp;&nbsp;
			时间:
			<input type="text" name="start_time" class="js-datetime date" value="<?php echo (isset($search['start_time']) && ($search['start_time'] !== '')?$search['start_time']:''); ?>" style="width: 120px;" autocomplete="off">-
			<input type="text" class="js-datetime date" name="end_time" value="<?php echo (isset($search['end_time']) && ($search['end_time'] !== '')?$search['end_time']:''); ?>" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
			关键字: 
			<input type="text" name="keyword" style="width: 200px;" value="<?php echo (isset($search['keyword']) && ($search['keyword'] !== '')?$search['keyword']:''); ?>" placeholder="请输入关键字...">
			<input type="submit" class="btn btn-primary" value="搜索">
			<a class="btn btn-danger" href="<?php echo url('cms/posts/index'); ?>">清空</a>
		</form>
		
		<form method="post" class="js-ajax-form" action="term/listorders">
			<div class="table-actions">
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/check',['ischeck'=>1]); ?>" data-subcheck="true">审核
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/check',['ischeck'=>0]); ?>" data-subcheck="true">取消审核
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/Settop',['istop'=>1]); ?>" data-subcheck="true">置顶
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/Settop',['istop'=>0]); ?>" data-subcheck="true">取消置顶
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/setRec',['isrecommend'=>1]); ?>" data-subcheck="true">推荐
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/setRec',['isrecommend'=>0]); ?>" data-subcheck="true">取消推荐
	            </button>
	            <!--
	            <button class="btn btn-primary btn-small js-articles-copy" type="button">批量复制</button>
	            -->
	            <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/del'); ?>" data-subcheck="true" data-msg="您确定删除吗?">删除</button>
	        </div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="15">
							<label>
								<input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
							</label>
						</th>
						<th width="10">ID</th>
						<th>文章标题</th>
						<th width="60">所属分类</th>
						<th>浏览量/评论</th>
						<th>来源</th>
						<th>缩略图</th>
						<th>作者</th>
						<th>发布时间</th>
						<th width="40">状态</th>
						<th width="60">操作</th>
					</tr>
				</thead>
				<tbody>
					<?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?>
					<td colspan="11">没有数据</td>
					<?php else: if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
					<tr>
						<td>
							<input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="id[]" value="<?php echo $vo['id']; ?>" title="ID:<?php echo $vo['id']; ?>">
						</td>
						<td><?php echo $vo['id']; ?></td>
						<td><?php echo $vo['title']; if(!(empty($vo['short_link']) || (($vo['short_link'] instanceof \think\Collection || $vo['short_link'] instanceof \think\Paginator ) && $vo['short_link']->isEmpty()))): ?> (<span class="red"><?php echo $vo['short_link']; ?></span>)<?php endif; ?></td>
						<td><a href="<?php echo url('Category/index',['cid'=>$vo['cateid']]); ?>" target="_blank"><?php echo $vo['ctitle']; ?></a></td>
						<td><?php echo $vo['view']; ?></td>
						<td><?php echo $vo['source']; ?></td>
						<td>
							<?php if(empty($vo['thumb']) || (($vo['thumb'] instanceof \think\Collection || $vo['thumb'] instanceof \think\Paginator ) && $vo['thumb']->isEmpty())): ?>
								<i class="fa fa-close fa-fw"></i>
							<?php else: ?>
								<img src="<?php echo $vo['thumb']; ?>" style="max-height:80px;max-width:100px;margin:auto;"/>
							<?php endif; ?>
						</td>
						<td><?php echo $vo['author']; ?></td>
						<td><?php echo date("Y-m-d H:i:s",$vo['datetime']); ?></td>
						<td>
							<?php if($vo['ischeck'] == 1): ?>已审核<?php else: ?>未审核<?php endif; ?><br/>
							<?php if($vo['istop'] == 1): ?>置顶<?php endif; ?><br/>
							<?php if($vo['isrecommend'] == 1): ?>推荐<?php endif; ?><br/>
						</td>
						<td>
							<a href="<?php echo url('cms/posts/edit',['parentid'=>$vo['cateid'],'cid'=>$vo['id']]); ?>">修改</a> |
							<a href="<?php echo url('cms/posts/del',['id'=>$vo['id']]); ?>" class="js-ajax-delete">删除</a>
						</td>
					</tr>
					<?php endforeach; endif; else: echo "" ;endif; endif; ?>
				</tbody>
			</table>
			<div class="table-actions">
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/check',['ischeck'=>1]); ?>" data-subcheck="true">审核
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/check',['ischeck'=>0]); ?>" data-subcheck="true">取消审核
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/Settop',['istop'=>1]); ?>" data-subcheck="true">置顶
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/Settop',['istop'=>0]); ?>" data-subcheck="true">取消置顶
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/setRec',['isrecommend'=>1]); ?>" data-subcheck="true">推荐
	            </button>
	            <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/setRec',['isrecommend'=>0]); ?>" data-subcheck="true">取消推荐
	            </button>
	            <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="<?php echo url('cms/posts/del'); ?>" data-subcheck="true" data-msg="您确定删除吗?">删除</button>
	        </div>
			<?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?>
				<div class="pagination text-center"><?php echo $list->render(); ?></div>
			<?php endif; ?>
		</form>
	</div>
<script src="<?php echo $admin_assets_path; ?>/js/common.js"></script>
<script type="text/javascript">
	$(".selector").val("<?php echo (isset($search['cateid']) && ($search['cateid'] !== '')?$search['cateid']:0); ?>");
</script>
</body>
</html>